package mmc.action;

import static org.lwjgl.input.Keyboard.KEY_TAB;
import static org.lwjgl.input.Keyboard.KEY_LCONTROL;

import org.lwjgl.input.Keyboard;

import mmc.Client;

public class Target extends InterfaceAction {

	public Target() {
		super("Target", (String)null, KEY_TAB);
	}

	@Override
	public void performOnClient() {			
		if(Keyboard.isKeyDown(KEY_LCONTROL))
			Client.client.getScene().player.target = Client.client.getScene().getNextFriend();
		else
			Client.client.getScene().player.target = Client.client.getScene().getNextEnemy();
	}
}
